RobotWebSession

interface RobotWebSession

Interface for a browser session, allowing for a script to navigate the web programatically with a full web browser including javascript and UI capabilities.

Functions

Link copied to clipboard
abstract fun beginCollectingPages(mimeType: String, domain: String, path: String, download: Boolean)
Tells the web session to begin collecting pages with the given parameters.
Link copied to clipboard
abstract fun clickItemWithLinkText(linkText: String): Boolean
Link copied to clipboard
abstract fun clickItemWithXPath(xpath: String): Boolean
Link copied to clipboard
Gets all of the collected pages that have been gathered since the last call to this or the beginCollectingPages method.
Link copied to clipboard
abstract fun getHTML(): String
Link copied to clipboard
abstract fun getRootNode(): RobotWebNode
Link copied to clipboard
abstract fun loadURL(url: String)
Link copied to clipboard
abstract fun nodeForXPath(xpath: String): RobotWebNode
abstract fun nodeForXPath(rootNode: RobotWebNode, xpath: String): RobotWebNode
Link copied to clipboard
abstract fun nodesForXPath(xpath: String): List<RobotWebNode>
abstract fun nodesForXPath(rootNode: RobotWebNode, xpath: String): List<RobotWebNode>
Link copied to clipboard
abstract fun reportError(errorMessage: String)
Link copied to clipboard
abstract fun setImplicitWait(secondsToWait: Float)
Link copied to clipboard
abstract fun setImportKnownFiles(importKnownFiles: Boolean)
Link copied to clipboard
abstract fun setValueForNode(node: RobotWebNode, value: String): Boolean
Link copied to clipboard
abstract fun setValueForXPath(xpath: String, value: String): Boolean
Link copied to clipboard
abstract fun waitForLoadCompletion(secondsToWait: Float)